package com.atwl.school_system.mapping;

import com.atwl.school_system.bean.CartInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CartDao {

    void addCart(CartInfo cartInfo);

    List<CartInfo> getCarts(@Param("userId") Integer userId);

    void updateCart(CartInfo cartInfo);

    void deleteCart(Integer id);

    CartInfo getId(Integer id);
}
